package com.jprocms.module.cms.controller.admin.imgblockpic.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 飘窗图片新增/修改 Request VO")
@Data
public class ImgblockPicSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "5017")
    private Long id;

    @Schema(description = "所属站点", requiredMode = Schema.RequiredMode.REQUIRED, example = "24228")
    private Long siteId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "url", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.jprocms.com")
    private String linkUrl;

    @Schema(description = "logo图片的url", example = "https://www.jprocms.com")
    private String linkLogoUrl;

    @Schema(description = "板块ID", example = "27059")
    @NotNull(message = "所属板块不能为空")
    private Long sectorId;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer sort;

}